﻿$(document).ready(function () {
    //$('.cna2usernameboxclass').focus();
    $('input').css('border', 'clear');
});

var selectedInput = null;

// determine selectedInput
$(function () {
    $('input, textarea, select').focus(function () {
        selectedInput = this;
    });
});

// handle selected input
$(function () {
    $('input').corner('4px');
    $('input').focus(function () {
        $(selectedInput).css('border', 'solid 2px #C7262E');
    });
    $('input').blur(function () {
        $(selectedInput).css('border', '');
    });
});